package com.example.demo.sqlplan.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * ******************************************************
 *
 * @author liugh9
 * @version 1.0
 * @classname SqlPlanFileSortDTO
 * @description
 * @date 2022/08/12 17:14
 * <p>
 * ******************************************************
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
//@JsonIgnoreProperties(ignoreUnknown = true)
public class SqlPlanFileSortDTO {
    @JsonProperty("sort_key")
    private String sortKey;
    @JsonProperty("r_loops")
    private Integer realLoops;
    @JsonProperty("r_total_time_ms")
    private BigDecimal realTotalTimeMs;
    @JsonProperty("r_used_priority_queue")
    private Boolean realUsedPriorityQueue;
    @JsonProperty("r_output_rows")
    private Integer realOutputRows;
    @JsonProperty("r_buffer_size")
    private String realBufferSize;
    @JsonProperty("r_limit")
    private Integer realLimit;
    @JsonProperty("temporary_table")
    private SqlPlanTemporaryTableDTO temporaryTable;
}
